<?php
/*
 * This extension is useless
 * Just for testing new possibilities
 */
class Yell_string extends Yell_fn {
    public function up () {
        $this->parent->value = strtoupper($this->parent->value);
        
        return $this->parent;
    }
    
    public function lo () {
        $this->parent->value = strtolower($this->parent->value);
        
        return $this->parent;
    }
    
    // Strip whitespace (or other characters) from the beginning and end of a string
    public function trim ($a = ' ') {
        $this->parent->value = trim($this->parent->value,$a);
        
        return $this->parent;
    }
    
    // Strip html-whitespace
    public function htrim () {
        $this->parent->value = $this->trim(' &nbsp;')->value;
        
        return $this->parent;
    }
}
